import { createStore, applyMiddleware, combineReducers } from 'redux';
//引入redux-thunk，用于支持异步action
import thunk from 'redux-thunk';
import personReducer from './reducers/person';
import countReducer from './reducers/count';
//汇总所有的reducer为一个reducer
const allReducers = combineReducers({
  he: countReducer,
  rens: personReducer
})
export default createStore(allReducers, applyMiddleware(thunk))